package com.ruoyi.mespro.service.impl;

import java.util.List;

import com.ruoyi.mespro.domain.WarpPdfReport;
import com.ruoyi.mespro.domain.WarpShafttypeReport;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mespro.mapper.ShaftWarpMapper;
import com.ruoyi.mespro.domain.ShaftWarp;
import com.ruoyi.mespro.service.IShaftWarpService;

/**
 * 整经数据汇总Service业务层处理
 *
 * @author Jun Xiang
 * @date 2022-06-07
 */
@Service
public class ShaftWarpServiceImpl implements IShaftWarpService
{
    @Autowired
    private ShaftWarpMapper shaftWarpMapper;

    /**
     * 查询整经数据汇总
     *
     * @param id 整经数据汇总主键
     * @return 整经数据汇总
     */
    @Override
    public ShaftWarp selectShaftWarpById(Long id)
    {
        return shaftWarpMapper.selectShaftWarpById(id);
    }

    /**
     * 查询整经数据汇总列表
     *
     * @param shaftWarp 整经数据汇总
     * @return 整经数据汇总
     */
    @Override
    public List<ShaftWarp> selectShaftWarpList(ShaftWarp shaftWarp)
    {
        return shaftWarpMapper.selectShaftWarpList(shaftWarp);
    }

    /**
     * 新增整经数据汇总
     *
     * @param shaftWarp 整经数据汇总
     * @return 结果
     */
    @Override
    public int insertShaftWarp(ShaftWarp shaftWarp)
    {
        return shaftWarpMapper.insertShaftWarp(shaftWarp);
    }

    /**
     * 修改整经数据汇总
     *
     * @param shaftWarp 整经数据汇总
     * @return 结果
     */
    @Override
    public int updateShaftWarp(ShaftWarp shaftWarp)
    {
        return shaftWarpMapper.updateShaftWarp(shaftWarp);
    }

    /**
     * 批量删除整经数据汇总
     *
     * @param ids 需要删除的整经数据汇总主键
     * @return 结果
     */
    @Override
    public int deleteShaftWarpByIds(Long[] ids)
    {
        return shaftWarpMapper.deleteShaftWarpByIds(ids);
    }

    /**
     * 删除整经数据汇总信息
     *
     * @param id 整经数据汇总主键
     * @return 结果
     */
    @Override
    public int deleteShaftWarpById(Long id)
    {
        return shaftWarpMapper.deleteShaftWarpById(id);
    }

    @Override
    public ShaftWarp selectTodayLastRecord() {
        return shaftWarpMapper.selectTodayLastRecord();
    }

    @Override
    public ShaftWarp selectShaftWarpByShaftCode(String shaftCode) {
        return shaftWarpMapper.selectShaftWarpByShaftCode(shaftCode);
    }

    @Override
    public ShaftWarp selectShaftWarpByCodeStatus(String shaftCode) {
        return shaftWarpMapper.selectShaftWarpByCodeStatus(shaftCode);
    }

    @Override
    public ShaftWarp selectLastShaftWarp(String maccode) {
        return shaftWarpMapper.selectLastShaftWarp(maccode);
    }

    @Override
    public List<WarpShafttypeReport> selectWarpShafttypeReport(ShaftWarp shaftWarp) {
        return shaftWarpMapper.selectWarpShafttypeReport(shaftWarp);
    }

    @Override
    public List<WarpPdfReport> selectWarpPdfReport(ShaftWarp shaftWarp) {
        return shaftWarpMapper.selectWarpPdfReport(shaftWarp);
    }

    @Override
    public List<ShaftWarp> selectWeavingShaftWarp(ShaftWarp shaftWarp) {
        return shaftWarpMapper.selectWeavingShaftWarp(shaftWarp);
    }

}
